package com.example.demo.alex.security;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @ClassName MyWebAppConfigurer
 * @Description TODO
 * @Author zjg
 * @Date 2018/12/2611:38
 * @Version 2.0
 */
@Configuration
public class MyWebAppConfigurer extends WebMvcConfigurerAdapter {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/webapp/WEB-INF/**").addResourceLocations("classpath:/webapp/");
        super.addResourceHandlers(registry);
    }
}
